<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2018/3/14
  Time: 15:24
  To change this template use File | Settings | File Templates.
--%>
<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <%@include file="/WEB-INF/jsp/comm/head.jsp"%>
</head>
<body>
<div class="container">
    <div id="log">
        <div class="panel panel-default">
            <div class="panel-body">
                <form action="/sys/get/getByDate" class="form-inline">
                    <div class="form-group">
                        <label for="">操作时间</label>
                        <input type="text" name="startDate" class="form-control">
                        <input type="text" name="endDate" class="form-control">
                    </div>
                    <button type="button" class="btn btn-danger" onclick="searchLog()">查询</button>
                </form>
            </div>
        </div>
        <table class="table table-bordered table-striped">
            <tr>
                <th>编号</th>
                <th>用户名</th>
                <th>操作信息</th>
                <th>操作时间</th>
            </tr>
            <c:forEach items="${l}" var="l">
                <tr>
                    <td>${l.id}</td>
                    <td>${l.username}</td>
                    <td>${l.operateinfo}</td>
                    <fmt:formatDate value="${l.operatedatetime}" pattern="yyyy-MM-dd hh:mm:ss" var="fd"/>
                    <td>${fd}</td>
                </tr>
            </c:forEach>
        </table>
        <button onclick="javascript:history.go(-1)" class="btn btn-primary">返回</button>
    </div>
</div>
<%@include file="/WEB-INF/jsp/comm/foot.jsp"%>
<script>
    /*时间*/
    $(function(){
        laydate.render({
            elem: '[name=startDate]'
        });
    });
    $(function(){
        laydate.render({
            elem: '[name=endDate]'
        });
    });
    function searchLog(){

    }
</script>
</body>
</html>
